package me.pearjelly.pmc.index.impl;

import me.pearjelly.pmc.index.Worker;
import me.pearjelly.pmc.service.InitialService;
import me.pearjelly.pmc.util.Logger;

public class InitialWorker implements Worker {
	@Override
	public void run() {
		log.info("Begin initial work...");
		long s = System.currentTimeMillis();
		initialService.index();
		long e = System.currentTimeMillis();
		log.info("End initial work. Spends %dms",e-s);
	}
	
	private static final Logger log = new Logger();
	private InitialService initialService;
	public void setInitialService(InitialService initialService) {
		this.initialService = initialService;
	}
	
}
